from django.db import models
from django import forms
from django.forms import ModelForm, PasswordInput

class LoginForm(forms.Form):
	email = forms.CharField(max_length=100, required=True)
	password = forms.CharField(max_length=100, widget=PasswordInput(), required=True)
	
class RequestForm(forms.Form):
	first_name = forms.CharField(max_length=100, required=True)
	last_name = forms.CharField(max_length=100, required=True)
	email = forms.CharField(required=True)
	password = forms.CharField(max_length=20, required=True, widget=PasswordInput())
	confirm_password = forms.CharField(max_length=20, required=True, widget=PasswordInput())

class User(models.Model):
	first_name = models.CharField(max_length=100)
	last_name = models.CharField(max_length=100)
	email = models.EmailField()
	_hash = models.CharField(max_length=140)
	timestamp = models.DateTimeField()
	activated = models.BooleanField()